home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000145_news@watsun.cc.columbia.edu _Sat Jan 23 13:16:58 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA12525
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 23 Jan 1999 13:16:56 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA01790
  7.     for kermit.misc@watsun.cc.columbia.edu; Sat, 23 Jan 1999 13:15:22 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: gerlach@netcom.com (Matthew H. Gerlach)
  10. Subject: Re: sleeping for random amounts of time
  11. Message-ID: <gerlachF60yL4.A3t@netcom.com>
  12. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  13. Date: Sat, 23 Jan 1999 18:12:40 GMT
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16.  
  17. Thank you for the usual prompt and useful answer.  The great support
  18. is one of many reasons I use kermit and tell anyone who'll listen to use
  19. kermit.
  20.  
  21. Most of the time I use Ckermit on a variety of Unix, but when I need to 
  22. do something for a PC Kermit95 does the trick.    
  23.  
  24. It sounds to me that I'll get the CKermit 7.0 and give it a go.  Will
  25. this function be mentioned in the source code's documentation?
  26.  
  27.  
  28. Matthew
  29.  
  30. In article <78aj0c$oku$1@newsmaster.cc.columbia.edu> fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
  31. >In article <gerlachF5z4BA.Hwu@netcom.com>,
  32. >Matthew H. Gerlach <gerlach@netcom.com> wrote:
  33. >: I want to write a kermit script to thrash a device I'm working on.
  34. >: In doing so, I want the script to be able to insert random pauses
  35. >: in the data stream.  
  36. >: 
  37. >: I figured the msleep command would provide the pauses, but I see no
  38. >: builting random() function call or anything like that.  I didn't see
  39. >: a relevent posting in a DejaNews search; so I was wondering if anyone
  40. >: had a good idea for generating a random number in a kermit script?
  41. >: 
  42. >It depends on the Kermit program and version.  Kermit 95 1.1.17 (the
  43. >current version) has a function that returns a random integer within
  44. >the given range.
  45. >
  46. >C-Kermit 7.0, to be announced for testing soon, has this too.
  47. >
  48. >Otherwise you can use something like \fright(\v(ntime),2) (the rightmost
  49. >2 digits of the number of seconds since midnight).
  50. >
  51. >- Frank
  52.  
  53.